package com.xy.servicemanage.controller;
import com.ruoyi.common.core.domain.servicemanage.dto.ServiceOrderComments;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.xy.servicemanage.service.OrderReviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;

/**
 * 订单评价
 * @author ruoyi
 * @date 2025-06-23
 */
@RestController
@RequestMapping("/comments")
public class OrderReviewsController extends BaseController
{
    @Autowired
    private OrderReviewService reviewService;

    /**
     * 查询订单评价列表
     */
    @RequiresPermissions("servicemanage:comments:list")
    @GetMapping("/list")
    public TableDataInfo list()
    {
        startPage();
        List<ServiceOrderComments> list = reviewService.selectOrderReviewDetails();
        return getDataTable(list);
    }
}
